package com.mainworks.template.params;

import com.mainworks.commons.entity.BaseParams;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 登录参数
 * @Author: HuangMinJie
 * @CreateDate: 2021/10/31 15:13
 * @Description:
 * @Version: 1.0.0.0
 * @ModifiedBy:
 * @ModifiedDate:
 * @ModifiedDescription:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LoginParams extends BaseParams implements Serializable {
    @NotBlank(message ="用户名不能为空")
    private String username;
    @NotBlank(message ="密码不能为空")
    private String password;
    private String code;

}
